+2009-01-21 Matthias Clasen <mclasen@redhat.com>
+
+ Bug 568552 – gtk_combo + gtk entry in invisible mode takes 100% cpu
+
+ * gtk/gtkentry.c: Fix an expose loop caused by raising windows out
+ of an expose handler. Also, don't show the 'Caps Lock' warning for
+ activated input methods, since that makes it permanently shown
+ for some locales. It should not be that necessary, now that we
+ do show preedit text even in password entries. Pointed out by
+ Frederic Crozat.
+
2009-01-21 Federico Mena Quintero <federico@novell.com>
* gtk/gtkfilechooserdefault.c (save_widgets_create): Set
exists.
2009-01-21 Marek Kasik <mkasik@redhat.com>
+
Bug 561801 - "scheduled printing" doesn't function as expected
* gtk/gtkprintunixdialog: Add tooltip.
/**
* GtkEntry:caps-lock-warning
*
- * Whether password entries will show a warning when Caps Lock is on
- * or an input method is active.
+ * Whether password entries will show a warning when Caps Lock is on.
*
* Note that the warning is shown using a secondary icon, and thus
* does not work if you are using the secondary icon position for some
PROP_CAPS_LOCK_WARNING,
g_param_spec_boolean ("caps-lock-warning",
P_("Caps Lock warning"),
- P_("Whether password entries will show a warning when Caps Lock is on or an input method is active"),
+ P_("Whether password entries will show a warning when Caps Lock is on"),
TRUE,
GTK_PARAM_READWRITE));
if ((icon_info = priv->icons[i]) != NULL)
{
if (icon_info->pixbuf != NULL)
- gdk_window_show (icon_info->window);
+ gdk_window_show_unraised (icon_info->window);
/* The icon windows are not children of the visible entry window,
* thus we can't just inherit the xterm cursor. Slight complication
realize_icon_info (widget, icon_pos);
if (GTK_WIDGET_MAPPED (widget))
- gdk_window_show (icon_info->window);
+ gdk_window_show_unraised (icon_info->window);
return icon_info;
}
g_assert_not_reached ();
break;
}
-
- if (GDK_IS_WINDOW (icon_info->window))
- gdk_window_show (icon_info->window);
+
+ if (icon_info->pixbuf != NULL)
+ gdk_window_show_unraised (icon_info->window);
}
if (!entry->visible && priv->caps_lock_warning)
{
- gboolean capslock_on;
- gboolean im_on;
-
- capslock_on = gdk_keymap_get_caps_lock_state (keymap);
- im_on = g_strcmp0 (gtk_im_multicontext_get_context_id (GTK_IM_MULTICONTEXT (entry->im_context)), "gtk-im-context-simple") != 0;
- if (capslock_on && im_on)
- text = _("You have the Caps Lock key on\nand an active input method");
- else if (capslock_on)
+ if (gdk_keymap_get_caps_lock_state (keymap))
text = _("You have the Caps Lock key on");
- else if (im_on)
- text = _("You have an active input method");
}
if (text)